package org.example.controller;

import org.example.benchmarkTest.SimpleBenchmark;
import org.openjdk.jmh.runner.RunnerException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/simpleBenchmark")
public class SimpleBenchmarkController {

    @GetMapping("simpleBenchmark")
    public void simpleBenchmark() throws RunnerException {
        SimpleBenchmark.test();
    }
}
